import request from "@/utils/request";

// 文档管理 START by fushuo
// 新增文档
export function saveDoc(params) {
    return request({
        url: `/business/doc/orderDoc/save`,
        method: 'post',
        data: params
    })
}

// 获取文档列表
export function getDocListApi(params) {
    return request({
        url: `/business/doc/orderDoc/queryList`,
        method: 'get',
        params
    })
}

// 获取文档详情
export function getDocDetailApi(params) {
    return request({
        url: `/business/doc/orderDoc/getDetail`,
        method: 'get',
        params
    })
}

// 删除文档
export function deleteDocApi(params) {
    return request({
        url: `/business/doc/orderDoc/delete`,
        method: 'delete',
        params
    })
}
// 文档管理 END by fushuo

// 监管预警 START by fushuo
// 监管预警——柱状图
export function getCropProductionData(params) {
    return request({
        url: `/business/extension/forecast/cropProductionData`,
        method: 'get',
        params
    })
}
// 监管预警——饼图
export function getDisasterTypeData(params) {
    return request({
        url: `/business/extension/forecast/disasterTypeData`,
        method: 'get',
        params
    })
}
// 监管预警——折线图
export function getWeatherCropGrowthData(params) {
    return request({
        url: `/business/extension/forecast/weatherCropGrowthData`,
        method: 'get',
        params
    })
}
// 监管预警 END by fushuo

// 查询统计报表有分页
export function statisticStatement(params) {
    return request({
        url: `/business/insuranceOrder/orderManager/statisticStatement`,
        method: 'get',
        params
    })
}